/*
 * Copyright (c) 2018 maoyan.com
 * All rights reserved.
 *
 */
package com.darren.euc.service;

import com.darren.euc.entity.*;
import net.sf.json.JSONObject;

import java.math.BigInteger;
import java.util.Date;
import java.util.List;

/**
 * 在这里编写类的功能描述
 *
 * @author fangwenhao
 * @created 2018/3/13
 */
public interface MeetingroomOrderService {

    List<MeetingroomOrder> findByRoomIdAndDate(Integer roomId, String date);

    MeetingroomOrder save(MeetingroomOrder meetingroomOrder);
    
    public BigInteger getCurrentDayCount(Integer orderId);

    PageBean query(JSONObject requestJson, Integer pageSize, Integer currentPage);

    MeetingroomOrderVO queryOne(JSONObject requestJson);

    MeetingroomOrderVO queryOne(Integer orderId);

    List<MeetingroomOrder> findBySpaceIdAndStatusAndDayGreaterThanEqual(Integer spId, Integer status, Date day);

    List<MeetingroomOrder> findBySpaceIdAndStatusAndPayStatusNotAndDayGreaterThanEqual(Integer spId, Integer status, Integer payStatus, Date day);

    List<MeetingroomOrder> findByRoomIdAndDayAndStatusIn(Integer roomId, Date date, List<Integer> integerList);

    List<MeetingroomOrder> findByRoomIdAndDayAndStatusInAndPayStatusNot(Integer roomId, Date date, List<Integer> integerList,Integer payStatus);

    PageBean findByPage(Integer pn, Integer ps, Integer status, Member member);

    PageBean queryV2(JSONObject requestJson, Integer pageSize, Integer currentPage);

    PageBean findByPage(MemberMeetingDTO memberMeetingDTO, Member member);

    MeetingDataVO findDataByRoomId(Integer id);
}
